package com.luyou.smart.framewortk.bean;

import java.util.Map;

/**
 * 返回视图对象
 */
public class View {

    /**
     * 视图数据
     */
    private String path;

    /**
     * 模型数据
     */
    private final Map<String, Object> model;

    public View(Map<String, Object> model) {
        this.model = model;
    }

    public View addModel(String key, Object obj){
        model.put(key, obj);
        return this;
    }

    public String getPath() {
        return path;
    }

    public Map<String, Object> getModel() {
        return model;
    }
}
